//
//  HWTabBarConfig.swift
//  HWanGame
//
//  Created by 王昌健 on 2021/12/30.
//  Copyright © 2021 94Wan. All rights reserved.
//

import UIKit

class HWTabBarConfig: NSObject {
    @objc class func controllers() ->  [HWNavigationViewController] {
        
        let home = HWNavigationViewController(rootViewController: HWHomeViewController())
        let game = HWNavigationViewController(rootViewController: HWHomeInformationVC())
        //        let video = HWNavigationViewController(rootViewController: HWVideoshipingViewController())
        let circle = HWNavigationViewController(rootViewController: HWNewCircleViewController())
        let fuli = HWFulijiemiamanViewController()
        fuli.title = "福利"
        let fuliNav = HWNavigationViewController(rootViewController: HWWelfareCenterController())
        let mine = HWNavigationViewController(rootViewController: HWMineViewController())
        return [home,game,circle,fuliNav,mine]
    }
    @objc class func tabBarItemsAttributesForController() -> [[String : Any]] {
        
        let tabBarItemOne = [CYLTabBarItemTitle:"首页",
                             CYLTabBarItemImage:"home_Normal",
                     CYLTabBarItemSelectedImage:"home_Select",
                             //                            CYLTabBarLottieSize:CGSize(width: 22, height: 22),
                             //           CYLTabBarItemTitlePositionAdjustment:NSValue.init(uiOffset: UIOffset(horizontal: -12/2, vertical: -3.5)),
                             //                             CYLTabBarLottieURL:URL(fileURLWithPath: Bundle.main.path(forResource: "green_lottie_tab_home", ofType: "json")!)
        ] as [String : Any]
        
        
        let tabBarItemTwo = [CYLTabBarItemTitle:"资讯",
                             CYLTabBarItemImage:"game_Normal",
                     CYLTabBarItemSelectedImage:"game_Select",
                             //                            CYLTabBarLottieSize:CGSize(width: 44, height: 44),
                             //           CYLTabBarItemTitlePositionAdjustment:NSValue.init(uiOffset: UIOffset(horizontal: -12/2, vertical: -3.5)),
                             //                             CYLTabBarLottieURL:URL(fileURLWithPath: Bundle.main.path(forResource: "gray_tabbar_home_animation", ofType: "json")!)
        ] as [String : Any]
        
        let tabBarItemThree = [CYLTabBarItemTitle:"广场",
                             CYLTabBarItemImage:"circle_Normal",
                     CYLTabBarItemSelectedImage:"circle_Select",
                             //                            CYLTabBarLottieSize:CGSize(width: 44, height: 44),
                             //           CYLTabBarItemTitlePositionAdjustment:NSValue.init(uiOffset: UIOffset(horizontal: -12/2, vertical: -3.5)),
                             //                             CYLTabBarLottieURL:URL(fileURLWithPath: Bundle.main.path(forResource: "gray_tabbar_home_animation", ofType: "json")!)
        ] as [String : Any]
        
        let tabBarItemFour = [CYLTabBarItemTitle:"福利",
                               CYLTabBarItemImage:"welfare_Normal",
                       CYLTabBarItemSelectedImage:"welfare_Select",
                               //             CYLTabBarItemTitlePositionAdjustment:NSValue.init(uiOffset: UIOffset(horizontal: -12/2, vertical: -3.5)),
                               //                               CYLTabBarLottieURL:URL(fileURLWithPath: Bundle.main.path(forResource: "data", ofType: "json")!)
        ] as [String : Any]
        
        let tabBarItemFive = [CYLTabBarItemTitle:"我的",
                              CYLTabBarItemImage:"mine_Normal",
                      CYLTabBarItemSelectedImage:"mine_Select",
                              //            CYLTabBarItemTitlePositionAdjustment:NSValue.init(uiOffset: UIOffset(horizontal: -12/2, vertical: -3.5)),
                              //                              CYLTabBarLottieURL:URL(fileURLWithPath: Bundle.main.path(forResource: "music", ofType: "json")!)
        ] as [String : Any]
        
        let tabBarItemsAttributes = [tabBarItemOne,tabBarItemTwo,tabBarItemThree,tabBarItemFour,tabBarItemFive]
        return tabBarItemsAttributes
    }
}
